package REDUN_NULL;

public class Example {
    String search(Collection<String> strings, String prefix) {
        String res = null;
        for (final String string : strings) {
            if (string.startsWith(prefix)) {
                return string;
            }
        }
        return res;
    }
}
